package com.guagua.vas.redis;

import com.guagua.vas.redis.RedIsHandler;
import com.guagua.vas.redis.RedIsHandlerImpl;

public class RedIsHandlerFactory {
   
	private static RedIsHandler redIsHandler;
	
	private static boolean initialized = false;
	
	/**
	 * 获取用户等级管理器
	 * @return 返回一个用户等级管理器实例
	 */		
	public static RedIsHandler getInstance(){
		if(!initialized){
			doInitialize();
		}
		return redIsHandler;
	}
	
	public static synchronized void doInitialize(){
		if(!initialized){
			redIsHandler = new RedIsHandlerImpl();
			initialized = true;
		}
	}
}
